projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b64ccd
)
* image.c (png_load): Don't assume height * row_bytes fits in 'int'.
author
Paul Eggert
<eggert@cs.ucla.edu>
Wed, 13 Jul 2011 03:42:26 +0000
(20:42 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Wed, 13 Jul 2011 03:42:26 +0000
(20:42 -0700)
src/ChangeLog
patch
|
blob
|
history
src/image.c
patch
|
blob
|
history
diff --git
a/src/ChangeLog
b/src/ChangeLog
index 3862ce46327ad08aaa732bae814aeb8f4c9221d0..9513dfd8e64af25d1ffc5b3f3c4ea6366a98aae9 100644
(file)
--- a/
src/ChangeLog
+++ b/
src/ChangeLog
@@
-1,3
+1,7
@@
+2011-07-13 Paul Eggert <eggert@cs.ucla.edu>
+
+ * image.c (png_load): Don't assume height * row_bytes fits in 'int'.
+
2011-07-12 Paul Eggert <eggert@cs.ucla.edu>
* bidi.c (bidi_dump_cached_states): Use pD to print ptrdiff_t.
diff --git
a/src/image.c
b/src/image.c
index f6626f61c83ce039b08ab96182d6e0d12ddd7fc2..1b6e67b4404e0258943484d8ea7b355c6913c0d5 100644
(file)
--- a/
src/image.c
+++ b/
src/image.c
@@
-5558,7
+5558,8
@@
png_load (struct frame *f, struct image *img)
{
Lisp_Object file, specified_file;
Lisp_Object specified_data;
- int x, y, i;
+ int x, y;
+ ptrdiff_t i;
XImagePtr ximg, mask_img = NULL;
png_struct *png_ptr = NULL;
png_info *info_ptr = NULL, *end_info = NULL;